﻿using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using Abp.Application.Services;
using Abp.Application.Services.Dto;
using LeadThing.AbpZeroTemplate.Dto;
using LeadThing.AbpZeroTemplate.UserTrajectorys.Dtos;

namespace LeadThing.AbpZeroTemplate.UserTrajectorys
{
    /// <summary>
    /// 综治人员巡查轨迹服务接口
    /// </summary>
    public interface IUserTrajectoryAppService : IApplicationService
    {
        #region 扩展方法

        /// <summary>
        /// 根据UserId获取用户轨迹列表数据
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        List<UserTrajectoryListDto> GetUserTrajectoryByUserId(GetUserTrajectoryInput input);

        #endregion

        #region 综治人员巡查轨迹管理

        /// <summary>
        /// 根据查询条件获取综治人员巡查轨迹分页列表
        /// </summary>
        Task<PagedResultDto<UserTrajectoryListDto>> GetPagedUserTrajectorysAsync(GetUserTrajectoryInput input);

        /// <summary>
        /// 通过Id获取综治人员巡查轨迹信息进行编辑或修改 
        /// </summary>
        Task<GetUserTrajectoryForEditOutput> GetUserTrajectoryForEditAsync(NullableIdDto<long> input);

        /// <summary>
        /// 通过指定id获取综治人员巡查轨迹ListDto信息
        /// </summary>
        Task<UserTrajectoryListDto> GetUserTrajectoryByIdAsync(EntityDto<long> input);



        /// <summary>
        /// 新增或更改综治人员巡查轨迹
        /// </summary>
        Task CreateOrUpdateUserTrajectoryAsync(CreateOrUpdateUserTrajectoryInput input);





        /// <summary>
        /// 新增综治人员巡查轨迹
        /// </summary>
        Task<UserTrajectoryEditDto> CreateUserTrajectoryAsync(UserTrajectoryEditDto input);

        /// <summary>
        /// 更新综治人员巡查轨迹
        /// </summary>
        Task UpdateUserTrajectoryAsync(UserTrajectoryEditDto input);

        /// <summary>
        /// 删除综治人员巡查轨迹
        /// </summary>
        Task DeleteUserTrajectoryAsync(EntityDto<long> input);

        /// <summary>
        /// 批量删除综治人员巡查轨迹
        /// </summary>
        Task BatchDeleteUserTrajectoryAsync(List<long> input);

        #endregion

        #region Excel导出功能

        /// <summary>
        /// 获取综治人员巡查轨迹信息转换为Excel
        /// </summary>
        /// <returns></returns>
        Task<FileDto> GetUserTrajectoryToExcel();

        #endregion

        #region APP

        /// <summary>
        /// 新增综治人员巡查轨迹
        /// </summary>
        Task<UserTrajectoryEditDto> CreateUserTrajectoryAPPAsync(UserTrajectoryEditDto input);

        #endregion
    }
}
